package tutorial;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class BinarySearchTutorial {

    public static void main(String[] args) {
        Integer[] arrays = {4, 5, 12, 65, 34, 2,23};
//        System.out.print("before sorted: ");
//        for(int i = 0; i < arrays.length; i++) {
//            System.out.print(arrays[i] + "  ");
//        }
//        System.out.println();
//        Arrays.sort(arrays);
//        System.out.print("After sorted: ");
//        for(int i = 0; i < arrays.length; i++) {
//            System.out.print(arrays[i] + "  ");
//        }
        List<Integer> arrList = Arrays.asList(arrays);
        System.out.println("before sorted: " + arrList);
        Collections.sort(arrList);
        System.out.println("After sorted: " + arrList);
        System.out.println(3>>>1);
    }
}
